﻿/*
** The author disclaims copyright to this source code.  In place of
** a legal notice, here is a blessing:
**
**    May you do good and not evil.
**    May you find forgiveness for yourself and forgive others.
**    May you share freely, never taking more than you give.
**
*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using System.Web.Routing;
namespace Scaffold
{
    public class ScaffoldViewLocator : WebFormViewLocator
    {
        protected override string GetViewLocation(RequestContext requestContext, string viewName)
        {
            if (requestContext == null)
                throw new ArgumentNullException("requestContext");
            return GetPath(requestContext, ViewLocationFormats, viewName) ?? "__SCAFFOLD__";
            
        }
    }
}
